Matlab Commands

ME 461
Professor Tilbury


Note: These tutorials have been completely revised and updated. See Control Tutorials for Matlab for the latest version.
An alphabetical listing of the Matlab commands introduced in the Matlab tutorials. Use "help <command>" in Matlab for more information on how to use the commands.
acker		Compute the K matrix to place the poles of A-BK
axis		Set the scale of the current plot
bode		Draw the Bode plot
cloop		Closed-loop transfer function
conv		Convolution (useful for multiplying polynomials)
ctrb		the controllability matrix
det		find the determinant of a matrix
eig		Compute the eigenvalues of a matrix
eps		Tolerance
for		For, next loop
format		Number format (significant digits, exponents)
grid		Draw the grid lines on the current plot
help		HELP
inv		find the inverse of a matrix
length		Length of a vector
loglog		Plot using log-log scale
lsim		simulate a linear system
norm		Norm of a vector
nyquist		Draw the Nyquist plot
obsv		the observability matrix
ones		returns a vector or matrix of ones
place		Compute the K matrix to place the poles of A-BK
plot		Draw a plot
print		Print the plot (to a printer or postscript file)
rlocfind	Find the value of k and the poles at the selected point
rlocus		Draw the root locus
roots		Find the roots of a polynomial
set		set(gca,'Xtick',xticks,'Ytick',yticks) to control the number
		and spacing of tick marks on the axes
size		gives the dimension of a vector or matrix
sqrt		Square root
ss2tf		State-space to Transfer function representation
ss2zp		State-space to Pole-zero representation
step		Plot the step response
subplot		Divide the plot window up into pieces
sum		Sum all elements in a vector
text		Add a piece of text to the current plot
tf2ss		Transfer function to state-space representation
tf2zp		Transfer function to Pole-zero representation
title		Add a title to the current plot
xlabel		Add a label to the horizontal axis of the current plot
ylabel		Add a label to the vertical axis of the current plot
zeros		returns a vector or matrix of zeros
zp2ss		Pole-zero to state-space representation
zp2tf		Pole-zero to Transfer function representation

last updated: 19 mar 95 / tilbury@umich.edu